﻿#pragma once
// check whether use external fmt library
#if 0
#ifdef SPDLOG_FMT_EXTERNAL
#include <fmt/format.h>
#endif
#endif
#include <spdlog/sinks/basic_file_sink.h>
#include <spdlog/sinks/stdout_color_sinks.h>
#include <spdlog/spdlog.h>

#include <memory>

#include "common_export.h"

// logger
class Logger
{
public:
    COMMON_EXPORT static void init();

    COMMON_EXPORT static std::shared_ptr<spdlog::logger> getLogger();
};